//
//  JOString.h
//  JOlib
//
//  Created by Pang Jun on 12/8/12.
//  Copyright (c) 2012 Pang Jun. All rights reserved.
//

#ifndef __JOlib__JOString__
#define __JOlib__JOString__

class JOString
{
    
public:
    JOString ();
    JOString (const char* val);
    JOString (const JOString &ins);
    virtual ~JOString();
    
    const JOString operator + (const JOString &);
    
    char* String() const;
    long long GetLenth() const;
    char GetCharByIndex(const long long index) const;
    JOString GetSubStringByRange(const long long firstIndex, const long long secondIndex) const;
    long long FindChar(char targetChar, long long times);
    long long FindString(const char* targetString);
    
private:
    char* value;
    long long lenth;
};

#endif /* defined(__JOlib__JOString__) */
